package org.example;

import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/nacos")
@RefreshScope
public class nacosMain4 {
    public static void main(String[] args) {
        SpringApplication.run(nacosMain4.class,args);
    }

    @Value("${common.name}")
    private String config4;

    @GetMapping("configs")
    public String getConfig4(){
        return config4;
    }


    public void shopGood(){
        System.out.println("商品提交");
    }
}